

{% extends "bootstrap/base.html" %}
{% block title %}
    添加商品
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">
        <div class="table-responsive">
            <table class="table">
                <caption>用户管理</caption>
                <a href="{{ url_for('admin.add_user') }}">添加用户</a>
                <thead>
                    <tr>
                        <th>用户名</th>
                        <th>昵称</th>
                        <th>邮箱</th>
                        <th>操作</th>

                    </tr>
                </thead>
                <tbody>
                {% for user in user %}
                    <tr>
                        <td>{{ user.username }}</td>
                        <td>{{ user.nickname }}</td>
                        <td>{{ user.email }}</td>
                        <td><a href="{{ url_for('admin.update_user',user_id=user.id) }}">修改密码</a>
                            <a href="{{ url_for('admin.delete_user',user_id=user.id) }}">删除用户</a>
                            </td>
                    </tr>
                {% endfor %}
                </tbody>
        </table>
        </div>
    </div>
</div>
</body>
{% endblock %}
